<div class="left_list_name">
    <h1>Trẻ ToDay! News</h1>
    <ul>
        <?php foreach ($parents as $catalog) { ?>
            <li>
                <a href="<?php echo $catalog->url ?>"><?php echo $catalog->name ?></a>
            </li>

        <?php } ?>
    </ul>
</div>
<div class="right_list_name">
    <div class="top_list_footer_js">
        <div class="">
            <div class="">
                <div class="all_js_footer">Tất cả Trẻ ToDay!</div>
                <div class="icon_js_footer">
                    <a href="#" id="prev_footer" onclick="return false;" class="prev_bt_fo"><img
                            src="<?php echo TreTodayUrl::home() . '/images/graphics/blank.gif' ?>" alt="prev" width="7"
                            height="8"/></a>
                    <a href="#" id="next_footer" onclick="return false;" class="next_bt_fo"><img
                            src="<?php echo TreTodayUrl::home() . '/images/graphics/blank.gif' ?>" alt="next" width="7"
                            height="8"/></a>
                </div>
            </div>
            <div class="footer_list_sd" id="id_footer">
                <?php  $num = 1;
                foreach ($results as $key => $item) {
                    if (count($item['sub']) == 0) continue; ?>
                    <div class="cut_js_footer" style="position: absolute; display: block; z-index:<?php echo $key ?>">
                        <?php foreach ($item['sub'] as $k => $i) {
                            ?>
                            <?php if ($num == 1 || $k == 0) { ?>
                                <ul>
                            <?php
                            }
                            $num++; ?>
                            <li>
                                <a href="<?php echo $i['url'] ?>"><?php echo $i['name'] ?></a>
                            </li>
                            <?php if ($k == count($item['sub']) - 1 || $num == 6) {
                                $num = 1; ?>
                                </ul><?php } ?>

                        <?php } ?>
                    </div>

                <?php } ?>

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        TreToday.Web.Footer.init();
    });
</script>